import request from '@/utils/request'
// 家庭农场累计注册数量对比
export function registerDataStats(data) {
  return request({
    url: '/bookkeeping/registerUserStats/registerDataStats',
    method: 'post',
    data
  })
}
// 家庭农场累计记账数量对比
export function collectBookKeepCountBySupervise(data) {
  return request({
    url: '/bookkeeping/statistics/collectBookKeepCountBySupervise',
    method: 'post',
    data
  })
}
// 记账进度查询1
export function userList(data) {
  return request({
    url: '/bookkeeping/statistics/userList',
    method: 'post',
    data
  })
}
// 记账进度查询2  /bookkeeping/statistics/userData
export function userData(query) {
  return request({
    url: '/bookkeeping/statistics/userData?userId=' + query.userId + '&year=' + query.year,
    method: 'post'
    // params: query
  })
}
// 记账查询1
export function regions(query) {
  return request({
    url: '/bookkeeping/statistics/regions?region=' + query.region + '&year=' + query.year,
    method: 'post'
  })
}
//
export function oneRegion(id) {
  return request({
    url: '/bookkeeping/statistics/oneRegion?region=' + id,
    method: 'post'
  })
}

// 全局搜索
export function queryAllByName(name, farmId) {
  return request({
    url: '/bookkeeping/incomeExpenses/queryAllByName?name=' + name + '&farmId=' + farmId,
    method: 'get'
  })
}
